<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<div class="row">
    <div class="box col-md-12">
        <div class="box-inner">
            <div class="box-header well" data-original-title="">
                <h2><i class="glyphicon glyphicon-edit"></i> Student Registration</h2>

                
            </div>
            <div class="box-content">
                <form role="form" action="UpdateTopicAction.do" method="post">
                    
                    <input type="hidden" name="id" value="${sessionScope.detail.id}">
                    <div class="form-group">
                        <label for="exampleInputEmail1">Topic Name</label>
                        <input type="text" name="name" value="${sessionScope.detail.name}" class="form-control"  id="exampleInputEmail1" placeholder="Enter Topic Name" >
                    </div>
                    

                   <div class="form-group">
                        <label for="exampleInputEmail1">Subject</label>
                        <select name="subid">
                            
                            <c:forEach var="subject" items="${applicationScope.li_allsubjects}">
                                <c:choose>
                                    <c:when test="${sessionScope.detail.subject.name eq subject.name}">
                                        <option selected="true" value="${subject.id}"><c:out value="${subject.name}"/></option>
                                        
                                    </c:when>
                                    <c:otherwise>
                                        <option value="${subject.id}">${subject.name}</option>
                                    </c:otherwise>
                                </c:choose>
                            </c:forEach>

                        </select>
                    </div>
                    
                    
                    <div class="form-group">
                    <button type="submit" class="btn btn-default">Submit</button>
                </form>

           
        </div>
    </div>
    <!--/span-->

</div><!--/row-->

    <!-- content ends -->
    </div><!--/#content.col-md-0-->
</div>